package goods.api;

import goods.model.ProductExtendProperty;
import goods.model.ProductExtendPropertyValue;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by JIM on 2016/11/7.
 */
public interface ProductExtendPropertyApi {

    public String toString();

    public List<ProductExtendProperty> findAllProductExtendProperty();

    public ProductExtendProperty findDataById(String id);

    public void saveBean(ProductExtendProperty productExtendProperty, String parentId);

    public boolean deleteDataById(String id);

    public Page<ProductExtendProperty> findPageByParams(String name, String code, String dataType, Pageable pageable);

    public ProductExtendPropertyValue findByProductExtendProperty(ProductExtendProperty productExtendProperty);
}
